improve ROI averager for XRF display