Well ... instead of rolling your own captcha, I would recommend using reCAPTCHA.
In reply to Re: Qestion about GD::SecurityImage by derby in thread Qestion about GD::SecurityImage by sman