Management command to generate thumbnails that may be missing

Occasionally, you can create problems when syncing data from production environments or you just want to clear out unused thumbnails. I thought this seemed like a useful tool that others might need.
Thanks for all the fixes. This still needs to be changed to 'wb' though