Function toRgb8bit

Ensures rgb uses 0..255 scale for r,g & b values. If rgb is already in 8-bit scale (ie it has unit:'8bit') it is returned.