i'd need to see the file where you didn't include the folder names to tell why that was not working.
to remove the folder names from the current version, edit lines 104:
'DefaultFileName' => "images/profile_images/".((isset($_POST["existing_image"]))?$_POST["existing_image"]:"") ."",
and 114:
'DefaultFileName' => "images/profile_images/".((isset($_POST["existing_thumb_image"]))?$_POST["existing_thumb_image"]:"") ."",
to:
104:
'DefaultFileName' => "".((isset($_POST["existing_image"]))?$_POST["existing_image"]:"") ."",
and 114:
'DefaultFileName' => "".((isset($_POST["existing_thumb_image"]))?$_POST["existing_thumb_image"]:"") ."",