private void UpdateOriginImage(Texture2D texture)
 {
     if (pathToFile != "" && pathToFile != null)
     {
         originalImage.enabled = true;
         Texture2D grayScaledTexture = ImageTransformScript.ConvertToGrayscale(texture);
         originalImage.texture = grayScaledTexture;
         originalImage.SizeToParent();
     }
     else
     {
         originalImage.enabled = false;
     }
 }
 private void UpdateTransformedImage(Texture2D texture)
 {
     if (pathToFile != "" && pathToFile != null)
     {
         transformedImage.enabled = true;
         Texture2D transformedTexture = ImageTransformScript.TransformTexture(texture);
         transformedImage.texture = transformedTexture;
         transformedImage.SizeToParent();
     }
     else
     {
         transformedImage.enabled = false;
     }
 }