generic snapshot SVG export and other fixes for SVG export