Spatiotemporal imaging of nonlinear optics in van der Waals waveguides