Do not apply any changes to an image until render() or a chain of undos's redo's have been finished and an action has just been applied.