Analysis of figures in painting