added setPixels()