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.
I think we are trying to get away from using decorators. If there is a design reason for not using our nested function pattern, adding a comment would be helpful.