image normalization compatible with principle of general binner. simplified routines