more flexible png and svg, new script