change method for getting canvas