     var image : UIImage? {
         
         didSet{
-            imageView.image = image
+            if image == nil {
+                let image1 = UIImage(named: "compose_pic_add")
+                let image2 = UIImage(named: "compose_pic_add_highlighted")
+                imageView.image = image1
+                imageView.highlightedImage = image2
+            }else{
+                
+                imageView.image = image
+                //这里是处理当点击不是加号的时候图片有变动的问题
+                imageView.highlightedImage = image
+            }
+            //当cell没有图片的时候设置叉叉隐藏
+            deleteButton.isHidden = image == nil
         }
     }
 

    override init(frame: CGRect) {
        super.init(frame: frame)
        setupUI()
    }
    
    required init?(coder aDecoder: NSCoder) {

        self.register(WYComposePictureViewCell.self, forCellWithReuseIdentifier: "cell")
        //设置数据源
        self.dataSource = self
        self.delegate = self
    }
    
    func addImage(image:UIImage) {
