Text this: Pulsed magnetic field gradient on a tip for nanoscale imaging of spins