Added ColorToRGB function