removed dead code
Improved edge highlighting

* fixed attempts at highlighting beyond the image border
* roughly 3x faster by iterating over columns instead of rows