some cleanup. norm_red left as a pattern, or a kind of tip for incoming changes. and already used it to fix my stupidity in previously provided norm_pixel. also partially added to main code. got to loop it and handle with images of size%8!=0