changed to get all photos