Fix placement of assets in document. Fixes #29