code: def image(self):
          r
          text = self.text
          w, h = self.font.getsize(text)
          margin_x = round(self.margin_x * w / self.w)
          margin_y = round(self.margin_y * h / self.h)
  
          image = Image.new('RGB',
                            (w + 2*margin_x, h + 2*margin_y),
                            (255, 255, 255))
  
          # Text
          self._writeText(image, text, pos=(margin_x, margin_y))
  
          # Line
          self._drawLine(image)
  
          # White noise
          noise = self._whiteNoise(image.size)
          if noise is not None:
              image = Image.blend(image, noise, 0.5)
  
          # Resize
          image = image.resize(self.size, resample=self.resample)
  
          return (text, image)
docs: r"""
          Tuple with a CAPTCHA text and a Image object.
  
          Images are generated on the fly, using given text source, TTF font and
          other parameters passable through __init__. All letters in used text
          are morphed. Also a line is morphed and pased onto CAPTCHA text.
          Additionaly, if self.noise > 1/255, a "snowy" image is merged with
          CAPTCHA image with a 50/50 ratio.
          Property returns a pair containing a string with text in returned
          image and image itself.
  
          :returns: ``tuple`` (CAPTCHA text, Image object)