2D rendering for different output (raster, pdf, svg)