Fixes #213 - faster rgb to hex transforms.