How a challenging artwork transformed Matisse