close auto resize canvas