The avoidance of threatening material in perceptual and imaginative behavior