added upload and download of photos