rotate opened images if image was a jpeg and an exif tag implies the correct rotation