Share Photo giant Getty took a leading AI image-maker to court. Now it’s also embracing the technology