Added a thumbnail feature to create a thumbnail for each image uploaded. Thumbnails can be viewed in the same way as photos, but by using /thumbnail/:id instead. Also fixed some of the other views which had broken after switching stylesheets.