changeProfilePic
Function to execute the profile pic change
Parameters
imagePath
: the path of the image to set
profilePic
: the state used to display the current profile pic
Function to execute the profile pic change
: the path of the image to set
: the state used to display the current profile pic