Extracted ROI shape from box selection for refactor