Fix last commit gfc45f2851d problem ("Still need to fix when calculating the center of the rectangle point in sidescan x points.").