A masterpiece by Caravaggio has undergone a major restoration, revealing details that had been hidden for centuries.