Listen for resize event on canvas