gray scale normalization