Remove thumbnails when deleting files/folders (closing #242)