lets start with troubleshooting the insert page, then move on to the update.
in the insert page, find the following lie:
$WA_redirectURL = "images_Detail.php";
and change it to:
$WA_redirectURL = "";
then add the following code at line 1 to turn error reporting on:
<?php
error_reporting(E_ALL);
ini_set('display_errors','on');
?>
and add this code befoer the closing </body> tag:
<?php echo WA_DFP_AllUploadsDebug(); ?>
post back the results after testing the upload.