sobel: Match classic GIMP behavior more closely