added support for hex2rgp. to convert colors. useful in captcha module.