added support for ROI as polygon