All my plugins do is to read the information which graphic to show from the engine. When it's not the one you are expecting, then it's more likely that you have overridden the graphics with eventing (event command "change actor graphic"), or you have another plugin interfering.
Viewing post in [Bundle] WYSIWYG Custom Menus for RPG Maker MZ comments
This is the actual code section in my plugin to load the graphic:
function getBitmap(type, actor) {
switch (type) {
case 'face': return ImageManager.loadFace(actor.faceName());
case 'battler': return ImageManager.loadSvActor(actor.battlerName());
case 'portrait': return ImageManager.loadPicture(actor.equipMenuPortrait());
default: return null;
} }
As you can see, it simply grabs the graphic by calling the engine's code.