Clean thumbnails when adding new document