Rotates images based on EXIF data