captcha factory class