                 
                 return false
         }
-		
+
 		let shouldSelect = self.imagePickerController.selectedAssets.count < self.imagePickerController.maxSelectableCount
 		if !shouldSelect {
 			self.imagePickerController.UIDelegate.imagePickerControllerDidReachMaxLimit(self.imagePickerController)

				cell.thumbnailImageView.image = image
			}
		}
		
		if let index = self.imagePickerController.selectedAssets.indexOf(asset) {
			cell.selected = true
			cell.checkView.checkLabel.text = "\(index + 1)"
			self.collectionView!.selectItemAtIndexPath(indexPath, animated: false, scrollPosition: UICollectionViewScrollPosition.None)
		} else {
			cell.selected = false
			self.collectionView!.deselectItemAtIndexPath(indexPath, animated: false)
		}
		
		return cell
	}

		
		return options
	}()

    override func viewWillAppear(animated: Bool) {
        super.viewWillAppear(animated)
        self.collectionView.reloadData()
    }

    override func viewDidLoad() {
        super.viewDidLoad()

		let layout = self.imagePickerController.UIDelegate.layoutForImagePickerController(self.imagePickerController).init()
		self.collectionView = UICollectionView(frame: CGRectZero, collectionViewLayout: layout)
        self.collectionView.backgroundColor = self.imagePickerController.backgroundColor
        self.collectionView.allowsMultipleSelection = self.imagePickerController.singleSelect
		self.collectionView.delegate = self
		self.collectionView.dataSource = self
        self.collectionView.registerClass(DKImageCameraCell.self, forCellWithReuseIdentifier: DKImageCameraIdentifier)
