added upload photo implementation