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.
Rick says: A comment may be helpful here to know why the href is used here