 
     internal override func prepareForReuse() {
         super.prepareForReuse()
+
         delegate = nil
+        self.imageView.layer.removeAnimationForKey("jiggle")
+        self.imageView.frame = bounds
+        self.closeButton.hidden = true
     }
 
     func jiggleAndShowDeleteIcon(editing: Bool) {


    func collectionViewCellDidTapDelete(cell: PhotoCollectionViewCell) {
        let indexPath = collectionView.indexPathForCell(cell)!
        NSLog("delete cell at #\(indexPath.row)")
        editing = !editing
    }
}


            cell.imageView.image = image
        }
        cell.delegate = self
        cell.jiggleAndShowDeleteIcon(editing)
        return cell
    }

