Fix a bug: delete cp's related images' information together