Cleaned up draw line code.