Greatly simplified line draw code, and greatly improved its appearance. However it is now computationally costly.