Pre-processing the CAPTCHA images