Added check for redrawing line