C# image contrast, brightness, gamma value and partial magnification