Add undo when setting 'image' using options.