Computer classifies paintings like an art critic