updated processing script to support processing v2.1.1

The Processing Script to manipulate images did not work for me when I download Processing v2.1.1

I modified the pde script to cater for changes  in Processing's API.