Fixed most of the block creation from paths.

Simplified tracking of "frame corners." Added some support for when we
need to add the edge corners to the polygon to make it not a triangle
or line, but this is not finished. I'm currently drawing the boxes,
and then a line around it, but the line doesn't seem to be drawing
correctly.