private volatile Captcha captcha;
public void serveCaptcha(String id, Locale locale, String format, OutputStream out) throws IOException {
captcha = new Captcha.Builder(widht, height)
.addText()
.addBackground(new GradiatedBackgroundProducer())
.gimp()
.addNoise()
.addBorder()
.build();
renderCaptcha(captcha.getImage(), format, out);