fixed bug in pixeldata