     private let q = dispatch_queue_create("camera_load_q", DISPATCH_QUEUE_SERIAL)
     private let dismissOnTap: Bool
     
-    private var targetSize: CGSize { return CGSize(width: ImagePickerViewController.expectedCellWidth, height: pickerHeight) }
-
-    public var pickerHeight: CGFloat {
-        didSet {
-            self.setFrames()
-        }
-    }
+    private var targetSize: CGSize { return CGSize(width: ImagePickerViewController.expectedCellWidth, height: frame.height) }
+
     public var delegate: ImagePickerDelegate?
 
     ///////////////////////////////////////

    func didSelectImage(image: UIImage)
}

public class ImagePickerViewController: UIViewController, UICollectionViewDataSource, UICollectionViewDelegate, UICollectionViewDelegateFlowLayout, UIImagePickerControllerDelegate, UINavigationControllerDelegate, PHPhotoLibraryChangeObserver {

    private static let screenSize = UIScreen.mainScreen().bounds.size
    private static let expectedCellWidth: CGFloat = 240

        let indexes = NSIndexSet(indexesInRange: NSMakeRange(0, max))
        recentPhotos = photos.objectsAtIndexes(indexes).map { $0 as! PHAsset }
        collectionView.reloadData()
    }


