Fixes the problem of misplaced picture when the main window is maximized / minimized / restored (#9, Closes #36).