Fixed up calculation of how many pixels to walk