Now it updates imageWnd right after calculate.