Simplified rect class and fixed SVG export