Optimisation has always shaped our world. It’s why we know the Mona Lisa, or Raja Ravi Varma. What happens when AI takes the reins – and does much of the creating too?