Fixed WritePixels