<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def tonet(self, outfile):
 """ Writes the PIL image into a png. We do not want to flip the image at this stage, as you might have written on it ! """

        
        self.checkforpilimage()
        if self.verbose :
            print "Writing image to %s...\n%i x %i pixels, mode %s" % (outfile, self.pilimage.size[0], self.pilimage.size[1], self.pilimage.mode)
        self.pilimage.save(outfile, "PNG")