Factorize matrix string function
rgb_to_xyz_matrix: add primaries only option