swap SVG to PNG and wire up types