comparing gif and jpeg formats