Automatically adding assets to `<defs>` element. Changed some figure-related interfaces a bit. Added `XLINK_NS` constant.