UI for rotating images

Because mobile phones have a bad tendency to upload rotated photos, often with any headers to indicate that they are sideways, this adds a UI for viewing and rotating photos.