A Computational Model of Visual Analogies in Design