backward compatibility for to_svg and to_png added