Fix region and add test case.
Make members private.
Speed up drawing.

Only draw one average data point for each pixel.