some bug in drawPixel, unsigned char -> int