It appears the issue was with a function in the image resizer include file. I updated it to the latest version and it appears to have fixed the problem.
Incidentally you can improve efficiency and speed by removing the redirect in the update code (since it redirects to itself) and just move the recordset below the update code and you won't need to redirect.