Use lcms2 plugin API instead of private data; code style
ICC 3Dlut dimensions are equal
Read 3Dlut data directly using lcms2 plugin API