Fix get_roi_masks for new svgoverlay code