support svg export

may fail because out of memory