Check if jpg or tiff to read exif data