added setPixel(..) function