change colour component range from [0..255] to [0..1]