Make the input image RGB. Made the ROI required. Input the image from the plugin. Calculate the mask based on ROI.