the new cropped image is being created with the same name as the old one right?
If so, set the If File Exists option to overwrite.
If this is not the case, compress the php file to a zip archive and attach that to your post so I can get a better sense of the code in context.