Fixed weighting to prefer gradient, seems to be almost right

it looks like it's converging, but is flipped-
I just realized that imfilter is flipping the image, i think. Maybe.
Now showing gradient image when visualizing

That wasn't it...