SVGO rewritten from scratch