setPixel is reimplemented as drawPix, hopfully there will be a gain in
performance.