This replaces the former exportSVG solution.
Fixes #3240 (closed)
This will create a new commit in order to revert the existing changes.