 
     private var spacing: CGFloat = 8
 
+    private let selectedImageView = UIImageView()
+    private var selectedImageViewDimension: CGFloat = 0
+    private var selectedImage = UIImage(named: "selected")
+
     override func setup() {
         super.setup()
         imageView.accessibilityIgnoresInvertColors = true
         imageView.contentMode = .scaleAspectFit
         contentView.addSubview(imageView)
+        selectedImageView.contentMode = .scaleAspectFit
+        contentView.addSubview(selectedImageView)
         captionLabel.numberOfLines = 1
         contentView.addSubview(captionLabel)
     }


extension InsertMediaSearchResultCollectionViewCell: Themeable {
    func apply(theme: Theme) {
        captionLabel.textColor = theme.colors.primaryText
        labelBackgroundColor = theme.colors.paperBackground
    }

            imageView.wmf_setImage(with: imageURL, detectFaces: true, onGPU: true, failure: { error in
                self.imageView.image = UIImage(named: "media-wizard/placeholder")
            }, success: {})
            selectedImageView.frame = CGRect(x: imageView.frame.maxX - selectedImageViewDimension, y: imageView.frame.maxY - selectedImageViewDimension, width: selectedImageViewDimension, height: selectedImageViewDimension)
            selectedImageView.image = selectedImage
            origin.y += imageView.frame.layoutHeight(with: spacing)
        }

        selectedImageView.isHidden = !isSelected

        let semanticContentAttribute: UISemanticContentAttribute = isRTL ? .forceRightToLeft : .forceLeftToRight

