     }
 }
 
-class InsertMediaSearchResultsCollectionViewController: ViewController {
-    let collectionView: UICollectionView
+class InsertMediaSearchResultsCollectionViewController: UICollectionViewController {
+    private var theme = Theme.standard
     private var flowLayout: FlowLayout {
         return collectionView.collectionViewLayout as! FlowLayout
     }
 
     weak var delegate: InsertMediaSearchResultsCollectionViewControllerDelegate?
     weak var scrollDelegate: InsertMediaSearchResultsCollectionViewControllerScrollDelegate?
-
-    var originalContentOffsetY: CGFloat = 0
 
     var searchResults = [InsertMediaSearchResult]() {
         didSet {

        searchResult.imageInfo = imageInfo
    }

    override func scrollViewDidScroll(_ scrollView: UIScrollView) {
        super.scrollViewDidScroll(scrollView)
        scrollDelegate?.insertMediaSearchResultsCollectionViewControllerScrollViewDidScroll(self, scrollView: scrollView)
    }

    // MARK: Themeable

    override func apply(theme: Theme) {
        super.apply(theme: theme)
        view.backgroundColor = theme.colors.paperBackground
        collectionView.backgroundColor = theme.colors.paperBackground
    }

    override func viewDidLoad() {
        super.viewDidLoad()
        collectionView.register(InsertMediaSearchResultCollectionViewCell.self, forCellWithReuseIdentifier: InsertMediaSearchResultCollectionViewCell.identifier)
        additionalSafeAreaInsets = UIEdgeInsets(top: 0, left: 0, bottom: flowLayout.minimumLineSpacing, right: 0)
        apply(theme: theme)
    }

    func reload() {
