Support auto-rotation of images based on exif attributes