5/7 - Show thumbnails on photo page, fix permalink code