added upload image functionality for the user