Fixed JPG images that were rotated failing to upload.