Made drawPixels() easier to understand