Could https://pypi.org/project/svglib/ be used instead of cairosvg to handle svg/clp files?
It would have the advantages that we can remove cairo as a dependency and also insert SVGs as vector files and not rastarized.
Not sure if there are any issues I haven't thought about.