 		
 		if event != nil {
 		}
-
+		
 		let touchPoint = touches.first!.preciseLocationInView(self)
 		
 		self.touchDownPoint = touchPoint

				self.layer.setNeedsDisplay()
			}
		}
	}
	
	public override func touchesCancelled(touches: Set<UITouch>?, withEvent event: UIEvent?) {

	public override func touchesEnded(touches: Set<UITouch>, withEvent event: UIEvent?) {
		if self.currentAction == .Draw {
			if self.currentTool == .Pencil {

				self.printTemplateSource(self.pointsBuffer)
			
				let smartPath = ATSmartBezierPath(withPoints: self.pointsBuffer)
				var pathAppended = false
				
				if self.recognizeDrawing {
					let recognizedPathInfo = smartPath.recognizedPath()
					
					if recognizedPathInfo != nil {
						
						var recognizedPathIsAccepted = false
