     Point(width, height)
     Point(0, height)
   ].map(matrix.transformPoint.bind(matrix))
+
+rectLines = (target) ->
+  points = pathPoints(target)
 
   points.map (currentPoint, i) ->
     nextPoint = points[i + 1] or points[0]

              end: path[i+1]
            drawLine(context, line, "#0F0")
            i += 1

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

  context.fillStyle = "magenta"
  context.fill()

pathPoints (target) ->
  width = target.naturalWidth
  height = target.naturalHeight

