fixed a memory leak where the result of pixelToColor was not being deleted;