Fixed logarithmic stretching for display (and refactored related code).
Fixed logarithmic stretching for display (and refactored related code).

DIPlib/diplib,DIPlib/diplib,DIPlib/diplib,DIPlib/diplib,DIPlib/diplib,DIPlib/diplib