Continuous image anomaly detection based on contrastive lifelong learning