photo uploader with an api