When to Restart a Painting (and When Not to)