Logarithmic Type Image Processing Framework for Enhancing Photographs Acquired in Extreme Lighting