Photo controllers all use same factory getPhotos function