allow rectangle drawing to set box for analysis