Vision based navigation for an unmanned aerial vehicle