Add a polygon select mode for automatic region selection