reorganized pixel conversion code, added norm_{red,green,blue} macros. code is not clean yet. also no looping yet. not ready for tests.