         
         dotView.bounds = CGRect(x: 0, y: 0, width: collapsedDimension, height: collapsedDimension)
         dotView.layer.contents = smallDotImage.cgImage
-        dotView.layer.rasterizationScale = scale
         dotView.center = CGPoint(x: 0.5*bounds.size.width, y: 0.5*bounds.size.height)
         addSubview(dotView)
         

    private let springDamping: CGFloat = 0.5
    private let crossFadeRelativeHalfDuration: TimeInterval = 0.1
    private var alwaysShowImage = false
    
    func set(alwaysShowImage: Bool, animated: Bool) {
        self.alwaysShowImage = alwaysShowImage

                self.selectedImageView.alpha = 0
            }
        }
        if (animated && rasterizeOnAnimations) {
            shouldRasterize = true
        }
        let done = {
            if (animated && self.rasterizeOnAnimations) {
                self.shouldRasterize = false
            }
            if !selected {
                self.layer.zPosition = self.zPosition
            }
