Improve generation of CAPTCHA images