The two big players in the licensed visual content will pair up to counter threats from artificial intelligence tools like Midjourney.