Updated cellposn_ends2headangle