Rgb2lab minimal

The is an alternative to #3726 I think that I have striped out all the code that we don't use. 

I am not sure which version I prefer