setting up the api
api for photo submission