adds api requests for photos