add possibility to extract polygons from rois