Add a hash to image filenames to ensure all thumbnails
will be unique, and avoid caching problems.