One other thing I noticed in the code is the upload folder, you have
'UploadFolder' => "images/profile"
Technically, you should put a trailing slash behind it like this
'UploadFolder' => "images/profile/"
Also, when you say the images are getting erased, are you referring to the physical images themselves, as well... or is just the database column that contains the image name getting erased? I am just trying to figure out if this has to do with DFP or if it just, perhaps, related to the SQL update statement.