Now supports configuration via TS. No hardcoded image-wraps and cross-references anymore.
cleaned up code a bit and fix some bugs. In the past version, some documents did not work properly for import and sometimes there were no images after import. This