Move object stacking and SVG export methods to separate files