code: def tonet(self, outfile):
          
          
          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")
docs: 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 !