Rewrote drawing to canvas