Fixed image border draw. To fix hide mainwindow after open & save actions