MZ Can anyone teach me how to update Face portrait in the new Equip Scene properly?

RPG Maker MZ come with nice graphical tweaks
Those include the nice little face portrait in the Status Window of Equip Scene.

So I was working on a plugin which made the character change costume according to what item is equipped.
The costume changed according to armor tier, armor, weapon, and shield combination.
One of the graphics affected is that face portrait in the Status Window of Equip Scene.

The plugin call a new function in Scene_Equip.prototype.onItemOk
I call it setCharacterPortrait()

How it is working is basically by determining armor tier first, followed by selecting face image file name, then selecting armor model, selecting the faceset index with values assigned from combination of equipped weapon and shield, then updating the character face itself through $gameParty.members()[0].setFaceImage(filename,index)

Somehow,
the plugin is working - it actually changed the actor portrait upon equipping different weapon on the same armor which use same faceset file.

However, if I equip different armor which use different faceset file, that face portrait in the new Equip Scene is not updated immediately. At first it showed completely blank image, but if you exit the Equip Scene then go back it will be updated properly.

And no, I think this is not a preload problem. I've used VisuStella Core engine that come with image preloader. Nothing changed. So it should be how RMMV handle the newly assigned face image file.

So, my questions are:
1. How actually RM MZ handle/load a new file in setFaceImage(filename,index)?
2. How the new face portrait is actually drawn in the Equip Scene?
3. How can I immediately update that face portrait in the Equip Scene without leaving the scene itself?
My first instinct is that the window needs refreshed. The window images don't update until the refresh command is called.
My first instinct is that the window needs refreshed. The window images don't update until the refresh command is called.

That what was I thought. But Scene_Equip.prototype.onItemOk already have three refresh commands assigned for each window. I wonder where did I go wrong.

Original thread: https://forums.rpgmakerweb.com/threads/can-anyone-teach-me-how-to-update-face-portrait-in-the-new-equip-scene-properly.127104/