Implmented polygon drawing feature for filtering