Sets the image gamma.