SVG utility functions