Changed Sobel to divide result by 4 instead of 2