Fixed minor bug in averageFilter(), minor change displayPixels()