made number of background pixels exactly nMaxDataPoints