Revert "Fixed invalid gamma when input/output gamma differs"

This reverts commit 0246c7b0d964cba8a9a37760535731de0b8bc445.