Moved the image shrinking to before asking for the thumbnail and tightened up error reporting. There are issues with images names… space are bad for instance.