Separated ROI mask out as another function.