 
     func collectionViewCellDidTapDelete(cell: PhotoCollectionViewCell) {
         let indexPath = collectionView.indexPathForCell(cell)!
-        NSLog("delete cell at #\(indexPath.row)")
-        editing = !editing
+        collectionView.performBatchUpdates({
+            self.assets.removeAtIndex(indexPath.row)
+            self.collectionView.deleteItemsAtIndexPaths([indexPath])
+        }, completion: nil)
     }
 }
 


    internal override func prepareForReuse() {
        super.prepareForReuse()
        delegate = nil
    }

    func jiggleAndShowDeleteIcon(editing: Bool) {

        containerView.contentView.addSubview(pickerButton)

        captureManager.prepare {
            self.captureButton.enabled = true
        }
    }
