Move code to recalculate division of legs using a 2D proyection to PixelSearch