Fix EXIF data throwing a notice when showing an image
Fixing stuff with API output being output twice

Also some code formatting and a redirect from post/show for clients such
as CartonBox so you can actually view the image after opening it in the
browser on the client.
Merge pull request #369 from Diftraku/master

Fix EXIF data throwing a notice when showing an image