added an attempt at getting the edge detection working