Svg path generator and trimming rewritten.
Some optimizations.
5% faster, 1% better cleaning