Follow-the-Leader Behaviour through Optical Flow Minimization