Displaying the magnitude and the gradient on the same image