Contextual Affinity Distillation for Image Anomaly Detection