Added two methods to convert CaptchaImage to byte array and back.