Clear painted document when new one is opened.