Vision-Based Control and Flight Optimization of a Rotorcraft UAV