Rotate image based on exif orientation