be able to save a screenshot
save screenshot when closing
fixes for screenshot