Add inverse option in lut_to_lut