Updated the tmp folder to exist only within the modx installation (Fixing open_basedir issue)
Fixed removal of temporary image
Removed debug logging