added upload photo method