Added support for PDF; fixed image quality in SVG