Some pixel optimizaion