call reset when setting a canvas