add manual implementation of edge detection