Sorry, another silly mistake... Thanks for pointing that out.
Now, is there a way to run this script? I have tried running it and then opening my picture from a browser but it doesn't work. I have also looked around and couldn't find anywhere that said how. Does anyone know?thanks