Added color curve adjustment and inversion functions