all_photos.json + photos functions working