 	
 	override func touchesBegan(touches: Set<UITouch>, withEvent event: UIEvent?) {
 		let touch: AnyObject? = touches.first
-		lastPoint = touch!.locationInView(self)
+		lastPoint = touch!.location(self)
 		pointCounter = 0
 	}
 	
 	override func touchesMoved(touches: Set<UITouch>, withEvent event: UIEvent?) {
 		let touch: AnyObject? = touches.first
-		let newPoint = touch!.locationInView(self)
+		let newPoint = touch!.location(self)
 		
-		bezierPath.moveToPoint(lastPoint)
-		bezierPath.addLineToPoint(newPoint)
+		bezierPath.move(to: lastPoint)
+		bezierPath.addLine(to: newPoint)
 		lastPoint = newPoint
 		
 		pointCounter += 1

		
		UIGraphicsBeginImageContextWithOptions(self.bounds.size, false, 0.0)
		if preRenderImage != nil {
			preRenderImage.drawInRect(self.bounds)
		}
		
		bezierPath.lineWidth = lineWidth

	
	// MARK: - Render
	
	override func draw(_ rect: CGRect) {
		super.draw(rect)
		
		if preRenderImage != nil {
			preRenderImage.draw(in: self.bounds)
		}
		
		bezierPath.lineWidth = lineWidth
