Image contrast enhancement via entropy production