Fix modeling for the hue channel
Update to better support 8-connected neighborhood