Image dynamic range enhancement and stabilization in the context of the logarithmic image processing model