Replace private pixel members with getPixels()