More shadow.py code cleanup for drawing edges.