fixed memory leak on canvas disposal