implemented picture normalization (not too sure if results are good)