Outline main logic of draw.c