Finally made drawing edges work