         UIGraphicsEndImageContext()
         
         tempImageView.image = nil
+        lineCoordinates = []
     }
 }

    var opacity: CGFloat = 1.0
    var swiped = false

    var foo = [CGFloat]()
    
    let colors: [(CGFloat, CGFloat, CGFloat)] = [
        (0, 0, 0),
        (105.0 / 255.0, 105.0 / 255.0, 105.0 / 255.0),

        CGContextMoveToPoint(context, fromPoint.x, fromPoint.y)
        CGContextAddLineToPoint(context, toPoint.x, toPoint.y)

        let coordinate: Array<CGFloat> = [toPoint.x, toPoint.y]
        lineCoordinates.append(coordinate)
        print(lineCoordinates)

        CGContextSetLineCap(context, CGLineCap.Round)
        CGContextSetLineWidth(context, brushWidth)
        CGContextSetRGBStrokeColor(context, 0, 0, 0, 1.0)
