protected override async Task OnSendToPlugin(ActionEventArgs <JObject> args)
 {
     if (args.Payload.TryGetValue("convertToEmbed", out JToken fileKeyObject))
     {
         var fileKey = fileKeyObject.Value <string>();
         await embedLinkLogic.ConvertLinkToEmbedAsync(fileKey);
     }
     else if (args.Payload.TryGetValue("convertToLink", out fileKeyObject))
     {
         var fileKey = fileKeyObject.Value <string>();
         await embedLinkLogic.ConvertEmbedToLinkAsync(fileKey);
     }
     else
     {
         await InitializeSettingsAsync(args.Payload.ToObject <PresetToggleSettings>());
     }
     await UpdateImage();
 }