Add support for gamma correction #43