Fixed weird bug with canvas getting drawn at an angle