changed canvas constructor
changed canvas constructor