patch some bugs and added delete function

I created the delete function to remove the profile picture.