Tried to add support for Lab color mode.

Lab color mode is still NOT OK and needs revision and testing.