removed slow setPixels