Fixed rgb_to_xy