moving pdiff max_attempts assignment before first reference (ResizeWorkflow)

I had some issues with my ImageMagick install which caused the ResizeWorkflow to throw a PdiffFailedError exception, which revealed the fact that max_attempts was being referenced before assignment, so I moved it.

Thanks!