Based on Vano's post I corrected this problem by running a perl command from the shell in the 4images root dir, the \admin dir and the \includes dir:
perl -pi '-es/(FROM\s+)("\.[A-Z_]+\."\s+[a-z]+,\s*"\.[A-Z_]+\."\s+[a-z]+)/$1($2)/g' *.php
This might be useful for people without access to Ultraedit. Feel free to update Vanos post with this information, i am not allowed to reply there.
Remember to BACK UP everything before you try this!