Upper Palaeolithic art as a perceptual search for magical images