Whoops, sorry if that seemed angry. It was not intended to. The caps were only intended for emphasis.
I was only trying to clarify because I thought I was clear that the position of the code was accounted for in my original message, so I wanted to spell out the process in (painful) detail.
In any case, I have something that works now.
I was trying to work on just the problem of cleaning up the thumbnail images. I had not included code to delete the source image yet. Doing so solves the problem.
As described, I would like to know why the resize code was being executed even though the update transaction should have redirected before that occurred. I suspect that a WA include is using something output buffering that could be important for similar issues I might encounter in the future.
Explaining the code is proving a bit larger a job than I thought, so I will post how to do it shortly.