SVG Matrix generation