Fix the frontend for the photos, as it's now on a new page. Made some other small tweaks so that we're not having to load data we can get using php instead, with all the advantages of caching, etc