def generate_image(self, chars):
background = random_color(<NUM_LIT>, <NUM_LIT:255>)<EOL>color = random_color(<NUM_LIT:10>, <NUM_LIT:200>, random.randint(<NUM_LIT>, <NUM_LIT:255>))<EOL>im = self.create_captcha_image(chars, color, background)<EOL>self.create_noise_dots(im, color)<EOL>self.create_noise_curve(im, color)<EOL>im = im.filter(ImageFilter.SMOOTH)<EOL>return im<EOL>
Generate the image of the given characters.

        :param chars: text to be generated.