private void InsertImageFromClipboard() { if (clipboard.GetImage() is { } image) { ImageProvider.InsertImage(ImageProvider.SelectedImageIndex + 1, image); } }