Separate PNG and SVG related functions from index.js