         return glyphImage
     }
 
-    func mediaBounds(forBounds bounds: CGRect) -> CGRect {
+    func mediaBounds(for bounds: CGRect) -> CGRect {
         let containerWidth = bounds.size.width
         let origin = CGPoint(x: xPosition(forContainerWidth: bounds.size.width), y: imageMargin)
         let size = CGSize(width: onScreenWidth(containerWidth), height: onScreenHeight(containerWidth) - imageMargin)
         return CGRect(origin: origin, size: size)
     }
 
-    fileprivate func glyph(basedOnImage image:UIImage, forBounds bounds: CGRect) -> UIImage? {
+    private func glyph(basedOnImage image:UIImage, forBounds bounds: CGRect) -> UIImage? {
 
         UIGraphicsBeginImageContextWithOptions(bounds.size, false, 0)
 
-        let mediaBounds = self.mediaBounds(forBounds: bounds)
+        let mediaBounds = self.mediaBounds(for: bounds)
         let origin = mediaBounds.origin
         let size = mediaBounds.size
 

        
        return CGRect(origin: CGPoint.zero, size: size)
    }

    func updateImage(inTextContainer textContainer: NSTextContainer? = nil) {

        guard let delegate = delegate else {
            assertionFailure("This class doesn't really support not having an updater set.")
            return
        }

        guard !isFetchingImage && url != lastRequestedURL && retryCount < maxRetryCount else {
            return
        }


                
                strongSelf.isFetchingImage = false
                strongSelf.lastRequestedURL = nil
                strongSelf.invalidateLayout(in: textContainer)
            })
    }
    
    func invalidateLayout(in textContainer: NSTextContainer?) {
        textContainer?.layoutManager?.invalidateLayout(for: self)
    }
}
