Add support for regenerating thumbnails if they have been deleted but the original image is still stored.