better memory usage

Improved RM
improve customROI support

custom ROI signal now reported as fraction of ROI rather than fraction
of ROI’s bounding box.