private void DisplayResult(ISN_UIPickerControllerResult result)
    {
        m_LastPickerResult = result;

        if (result.IsSucceeded)
        {
            if (result.MediaType.Equals(ISN_UIMediaType.IMAGE))
            {
                DisplayMessage("Image Loaded!");
                ApplyImageToGui(result.Image);
            }

            if (result.MediaType.Equals(ISN_UIMediaType.MOVIE))
            {
                DisplayMessage("Video Loaded!", () =>
                {
                    if (!ISN_Settings.Instance.AVKit)
                    {
                        DisplayMessage("AVKit should be enabled in plugin setting in order to retrieve video thumbnail");
                    }
                    else
                    {
                        Texture2D image = ISN_AVAssetImageGenerator.CopyCGImageAtTime(result.MediaURL, 0);
                        ApplyImageToGui(image);
                    }
                });
            }
        }
        else
        {
            DisplayMessage("Failed: " + result.Error.FullMessage);
        }

        UpdateUI();
    }
        void didFinishPickingMedia(string data)
        {
            ISN_UIPickerControllerResult result = JsonUtility.FromJson <ISN_UIPickerControllerResult>(data);

            m_didFinishPickingMedia.Invoke(result);
        }