Fixing generic type for rgb2lab