Added neighbor generation, adding to global pixel vector errors out