better support for captcha generation