working version of update profile pic