Generative Models For Seismic Imaging And Inversion