code: def changecolourmode(self, newcolour):
          
          if type(newcolour) != type(0) and self.pilimage.mode != "RGB":
              if self.verbose :
                  print "Switching to RGB !"
              self.pilimage = self.pilimage.convert("RGB")
              self.draw = None # important, we have to bebuild the draw object.
              self.makedraw()
docs: Auxiliary method to change the colour mode.
          Give me a colour (either an int, or a 3-tuple, values 0 to 255) and I decide if the image mode has to
          be switched from "L" to "RGB".