Image thumbnails: added a hash check to prevent generating lots of unwanted thumbnials (prevents server spaming)