added methods to handle canvas setting and unsetting
gave canvas dimensions