Refactor fabric.Text#toSVG