Apply deleteThumbnails function in the blog module, thumbnails didn't get deleted in the past