adding copyImage to window and removing on animation completion