Call exif_read_data() only on JPEG images