Convert captcha to python2 to be able to use PIL and
support more image formats.