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.
Please remove this (the with statement above should close the file)