cut mainwindow image