added image normalization when plotting