Nanoscale and ultrafast imaging of magnetic materials with resonant soft X-rays