 class TabNavigationImagePickerController: TabNavigationController {
     fileprivate lazy var _photoAssetCollections: [PHAssetCollection] = { () -> [PHAssetCollection] in
         let results = TabNavigationImagePickerController.generatePhotoAssetCollections()
-        let assets = results.objects(at: IndexSet(integersIn: 0..<results.count)).filter{ PHAsset.fetchAssets(in: $0, options: nil).count > 0 }.sorted { PHAsset.fetchAssets(in: $0, options: nil).count > PHAsset.fetchAssets(in: $1, options: nil).count
+        let option = PHFetchOptions()
+        option.predicate = NSPredicate(format: "mediaType == \(PHAssetMediaType.image.rawValue)")
+        let assets = results.objects(at: IndexSet(integersIn: 0..<results.count)).filter{ PHAsset.fetchAssets(in: $0, options: option).count > 0 }.sorted { PHAsset.fetchAssets(in: $0, options: option).count > PHAsset.fetchAssets(in: $1, options: option).count
         }
         return assets
     }()

    }
    
    private func _initializer() {
        // Enumerate the asset collections.
        willBeginFetchingAssetCollection()
        if !shouldIncludeHiddenAssets {

        // Dispose of any resources that can be recreated.
    }
}

// MARK: Actions.

extension TabNavigationImagePickerController {
    @objc
    fileprivate func _handleCancelAction(_ sender: UIButton) {
        self.dismiss(animated: true, completion: nil)
    }
}

// MARK: - Public.

extension TabNavigationImagePickerController {
