Dynamics of a 2D vortex doublet under external deformation