hides previous canvas with a div instead of an image