             width: BottomBar.ButtonSize,
             height: BottomBar.ButtonSize)
         colorChangedButton?.frame = colorButtonRect
-        colorChangedButton?.setImage(colorChangeButtonImg, forState: UIControlState.Normal)
+        colorChangedButton?.setImage(colorChangeButtonImg, for: UIControlState())
         self.addSubview(colorChangedButton!)
         
         descriptionButton = UIButton()

            width: BottomBar.ButtonSize,
            height: BottomBar.ButtonSize)
        descriptionButton?.frame = descriptionButtonRect
        descriptionButton?.setImage(descriptionButtonImg, forState: UIControlState.Normal)
        self.addSubview(descriptionButton!)
        
        clearPathButton = UIButton()

            width: BottomBar.ButtonSize,
            height: BottomBar.ButtonSize)
        clearPathButton?.frame = clearPathButtonRect
        clearPathButton?.setImage(clearButtonImg, for: UIControlState())
        self.addSubview(clearPathButton!)
    }
    
    func hide() {
        self.isHidden = true
    }
    
    func show() {
        self.isHidden = false
    }
}
