updating to support thumbnails on document creation