Add gamma option in curve_to_lut