filled in buildImageEdges, but I get a segfault somewhere along the line.  Onto bugfixing where.