refactor the captcha's generator