added setMaxBehindLines and setMaxFrontLines for better finetuning for captcha