Fixed image saving and dialogs.