Forgot to enable image controls.
Auto size main window according to input size.