moved pixel struct definition