Refactor fabric.StaticCanvas#toSVG more