Add function for handling SVG points