Added 'this' in resetCanvas.