             cell.delegate = self
             if seletedPhotosArray.contains(indexPath.row) {
                 cell.type = .Selected
+                weak var weakSelf = self
+                getPhotoHD(indexPath.row, completed: { (index) in
+                    PhotoPreviewView.update(UIImage.init(data: weakSelf!.photosArray[indexPath.row]!)!)
+                })
             }
             if photoImages[indexPath.row] != nil {
                 cell.updateWithImage(photoImages[indexPath.row]!, indexPath: indexPath)

        initNav()
        collectionView?.reloadData()
    }
    
    func rightItemTapped() {
        var thumb:[UIImage]? = []
        if seletedPhotosArray.count > 0 {
            for index in seletedPhotosArray {
                thumb!.append(compress(photosArray[index]!)!)
            }
            delegate?.selected(thumb, src: nil, seletedIndex: seletedPhotosArray)
        }

    var theLastIndexPath:NSIndexPath?
    
    let preloadNum = 300
    
    lazy var thumb:[UIImage]? = {
        let thumb:[UIImage]? = []
        return thumb
    }()
    
    deinit {
    
