Can you shed any light on why the thumbnails are getting recreated when the resize code is within the body of the page and should not be executed before the update transaction redirects the page?
I'm thinking that something in the WA code is using output buffering. If I knew why perhaps we could make this code I have work correctly on the page submit rather than on the redirect.
I want to avoid issues like deleting a new file because the new file had the same name as the old file and similar issues. If the code could be executed on page submit, the error checking a session variable handling would be easier.