persistence: support Freedraw, Polygon and Ring ROIs