made roi distribution calculation more robust against null arguments
added filter to find highest rois in roi distribution