adding the photos api call