Soft x-ray imaging of spin dynamics at high spatial and temporal resolution