Reverted to old commit because of errors.

The previous commit duplicated the rgbFromHex() function as hex2rgb().