Quantifying aesthetics of visual design applied to automatic design