Improve detection of acceptable limits in captcha() (Feature request #460)