Fixed custom thumbs breaking the document previews