ensure we only get the photos in getPhotos