used model function to post the profile pic