updated example for getAllPhotos call