Fixed line position depending on the axis(for accuracy). Changed that line always starts with 0,0 position.