MZ how to call an image in the object PIXI.Texture.from();

Hello everyone,
This is my first post in this thread, and I want to ask about PIXI.js, ...so I'm working on a project for my game using rpg maker mz, , and I'm currently creating an effect inside the title screen using `PIXI.SimplePlane`, which I learned from PIXI.io, to use `PIXI.simplePlan`, if I want took the image from the file folder, then I used the `new PIXI.Texture.from(`img/system/name.png`)` method, when I tried it, everything went smoothly, but the problem appeared when I deployed my game, when the file from img is encrypted, the file name automatically changes its extension, so the `PIXI.Texture.from` method cannot read my img file because it has changed, but if I use the `new PIXI.Texture.from(ImageManager.loadSystem(`name`)) method , `PIXI.Texture.from` can't read the source, can anyone help to explain the solution to this problem?...and this is the code that I made :

JavaScript:
 class Scene_Title extends Scene_Base {
    constructor() {
      super();
     this.frameWait = 0
     this.count = 0
    }

    start() {
      super.start();
      SceneManager.clearStack();
      this.playTitleMusic();
      this.startFadeIn(this.fadeSpeed(), false);
    }

    playTitleMusic() {
      AudioManager.playBgm($dataSystem.titleBgm);
      AudioManager.stopBgs();
      AudioManager.stopMe();
    }

    create() {
      super.create();
      this.createBackground();
    }

    createBackground() {
      this._backSprite1 = new PIXI.SimplePlane(
        new PIXI.Texture.from(`img/system.BG2.png`),
        10,
        10
      );
      this.buffer = this._backSprite1.geometry.getBuffer("aVertexPosition");

      this.addChild(this._backSprite1);

      
    }

    updateAllMove() {
      
      for (let i = 0; i < this.buffer.data.length; i++) {
        this.buffer.data[i] += Math.sin(this.count / 10 + i) * 0.2;
      }
      this.buffer.update();
      this.count++;
    }

    //Update

    update() {
      super.update();
      this.frameWait++;
      if (this.frameWait >= 5) {
        this.updateAllMove();
      }
    }
  }

Sorry in advance if my English looks messy, because English is not my main language. thank you very much and have a good day everyone.
I'm not sure how it works in MZ, so maybe you'll need to take my advice with a grain of salt.

In MV, ImageManager.loadwhatever doesn't return a texture, but a bitmap object. Something PIXI.Texture.from doesn't know how to handle, because it is expecting a link to image data. You'd have to do sth like PIXI.Texture.from(ImageManager.loadSystem("name")._bitmap._image) or whatever. Sth that points to image data.
Although, using PIXI.Texture in combination with ImageManager.loadwhatever would be counterproductive in this scenario due to how MV loading image, creating a bitmap from it and then you creating a PIXI texture from that. And I'd suggest creating a loading system that loads and decrypts images using the core decrypt functions instead.
wow!!, it works like a charm, thank you sir @Poryg for the solution, and this is what I did, first I created a new sprite using `new Sprite(ImageManager.loadSystem(`BG2`)), then inside the object

`new PIXI.SimplePlane` I called data from the Sprite object which has a texture property, and it turns out there is data from the image file, this is the code I did:

Code:
  const background = new Sprite(ImageManager.loadSystem(`BG2`));
      this._backSprite1 = new PIXI.SimplePlane(background._texture, 10, 10);
      this.buffer = this._backSprite1.geometry.getBuffer("aVertexPosition");
      this.addChild(this._backSprite1);

And now when I deploy my game even with an encrypted image file, the image file can still be read, once again thank you sir @Poryg.

This thread can be closed.
Have a good day everyone 🙂

Original thread: https://forums.rpgmakerweb.com/threads/how-to-call-an-image-in-the-object-pixi-texture-from.165347/