put the sobel filter into a seperate function
more comments