SVG Vectorization by Statistical Region Merging