Simple model for tunable vortex pinning by a magnetic dipole