For that particluar error, just delete that line of code. It is spry code for the form element you deleted.
The server code for the validation of the fields you are having trouble with is:
$WAFV_Errors .= WAValidateFE($WA_DFP_UploadStatus["WA_UploadResult2"]["serverFileName"] . "",".gif, .jpg, .jpeg, .png",true,9);
$WAFV_Errors .= WAValidateFE($WA_DFP_UploadStatus["WA_UploadResult1"]["serverFileName"] . "",".gif, .jpg, .jpeg, .png",true,10);
... it looks correct. What is the error messages that you see? When do you see it?