Rotate images which have an EXIF orientation tag.

Maybe something like this for #51?