def exportPage(self, curfile, outfile):
        command = "%s %s --export-png %s" %(self.options.inkscape_path,curfile,outfile)
        p = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
        return_code = p.wait()
        f = p.stdout
        err = p.stderr
        img = Image.open(outfile)