Implement ReferenceLine class. Allow redrawing of a reference line when re-clicking in the draw reference mode. Don't set/draw the reference line if the initial and final points are the same.