PathFinding: weight cost by pixel-pixel distance to get more regular paths

Signed-off-by: Jean-Yves Tinevez <jean-yves.tinevez@pasteur.fr>