Implement edge detection filter, closes #9