Comparing image generation to code generation are two very different workloads.
Image generation is also split up into how you define and categorize the art or image that you need.
Do you need a general color blind palette and background for a website? AI is going to be better. It just is it's going to be able to do that sort of job faster. That's not art but it is image generation.
Do you need some generic little stand-in stock photo? Then it's going to be easier to just use a machine to generate that or by a stock photo license. Again it's not art.
Art is for the purpose of expression. Any picture can be art. It just comes down to who made it in if they're expressing something.
You really just can't compare image generation to code. It's just two very very different arguments and workloads.
And I mean, if you want to make something more secure, being able to throw an endless unsleeping machine at something that breaks it in every conceivable possible way to find every possible vulnerability and bug... Yeah, you can't really ask for a better tester than that.
You're going to f****** hate fixing all the s*** it fines. You probably shouldn't let it fix it. But it's good of finding it.