Computing the Laplacian of an image