draw rectangle after detection