         drawLine context, line, "purple"
 
         targetMap.forEach (intersections, target) ->
-          rectLines(target).forEach (targetLine) ->
+          rectLines(target).forEach (targetLine, i) ->
             intersection = line.intersects(targetLine)
 
             if intersection
               drawCircle context, intersection
 
-              intersections.push path.length
+              intersections.push [path.length, i]
               path.push intersection
 
         path.push current

    Point(width, height)
    Point(0, height)
  ].map(matrix.transformPoint.bind(matrix))

  points.map (currentPoint, i) ->
    nextPoint = points[i + 1] or points[0]

              end: path[i+1]
            drawLine(context, line, "#0F0")
            i += 1
          
          # Trace around image
          edgePath = pathPoints(target)
          i = beginImageEdge

          return

    name: "Cut"
    mousedown: (e) ->
