Digital analysis of paintings