handle exif rotation