Convert absolute SVG paths to relative paths and vice versa