Documentmanagement:fix generating thumbnails