bug fix when saving with exif