Add an autoOrient function that rotates/flips the image based on the
EXIF information.