fixed error with exif when resizing