Constrained Gradient Integration for Improved Image Contrast