Added js function to convert .svg file ext to .png