The first problem i see is at line 1- 2:
it should be changed to:
<?php require_once("WA_DigitalFilePro/HelperPHP.php"); ?>
I have never seen the script tag added to the php code block before so I cannot say why it is doing that.
It may be doing it because you page is not a complete web page, it is missing required pieces such as the doctype tag, the head tabs, the html and body tags.
If images are still not uploading, add the3 following code at line 1 to see if there is a php error occurring:
also go the bindings tab, expand the WA Uploaded Files Global Status group and add the debug Info binding to your page.
After performing a test, post pack with the output of the debug info.