MDL-10862 add delete_profile_image() function + whitespace + removed redundant function calls + docs
MDL-10862 add delete_profile_image() function + whitespace + removed redundant function calls + docs

dilawar/moodle