added clear canvas method.