A lawsuit alleges AI image generators violate artists’ rights by ingesting huge troves of digital images and producing derivative works that compete against the originals.