now support roi selection in irregular shape