Clamp image data between the given range.
Gamma correction.