Add thumbnail for documents, fixed preview download pregress show incorrectly issue.