make use of deleteThumbnails function in the blog module

In the blog module the thumbnails aren't deleted when editing or deleting a post. Now they are. Because of this I wrote the deleteThumbnails function which is merged earlier.