MZ Working on a "Battle Pop up" system - and hoping for some feedback.

Hi, so I hope this is the right place to talk and post about this - I'm really not sure if it's here or the Plugin's in development. (if you think it's better off there please move it and sorry in advance.)

I'm working on a system - it uses the show picture command to have an image of the current turn's actor to show up or when an actor is taking their turn. It looks like this in game:
Spoiler
joNmfQt.gif
(Note: The framerate is kind of wonky due to my recording program - there's is no lag present as far as I can tell.)

So I'm mostly happy with the code as is. There is some serious bugginess during atb though. And, well - I wanted to share the code with the hopes of someone more experienced can have a look at it and give me some feedback on the general script and any advice on how I can improve on this.
Spoiler
Code:
////////Instructions///////////////////////////////////////////////////////////////////
////Make a <BattlePopUp:x> note on an actor and/or a class.
////Images are placed in the Pictures folder.
//////////////////////////////////////////////////////////////////////////////////////
/////////Create Actor PopUp
Game_Actor.prototype.createActorPopUpImage = function(){
    
    actorId = this._actorId;
    classId = this._classId;
    actorname = "";
    classname = "";
    fullname = "";
    
    if ($dataActors[actorId].meta.BattlePopUp != null){
     actorname = $dataActors[actorId].meta.BattlePopUp;
    };

    if ($dataClasses[classId].meta.BattlePopUp != null){
     classname = $dataClasses[classId].meta.BattlePopUp;
    };
    
    fullname = (actorname + "" + classname);
    
    fullname = this._actorPopUpName;
    
    if (fullname != ""){
     $gameScreen.showPicture(1, fullname, 1, 0, 300, 100, 100, 255, 0);
     $gameScreen.movePicture(1, 1, 100,300, 100,100, 255, 0, 5);
    };

};

/////////Create Pop Up on Start Action Command Selection
const startActorCommandSelectionPopup = Scene_Battle.prototype.startActorCommandSelection
Scene_Battle.prototype.startActorCommandSelection = function() {
    startActorCommandSelectionPopup.call(this)
    actor = BattleManager.actor();
    actor.createActorPopUpImage();
};

////////Clear Image
const HideActorPopUpOnActorActionStart = Game_Actor.prototype.performActionStart
Game_Actor.prototype.performActionStart = function(action) {
    HideActorPopUpOnActorActionStart.call(this, action)
    $gameScreen.erasePicture(1);
};

const HideActorPopUpOnPreviousCommand = Game_Actor.prototype.selectPreviousCommand
Game_Actor.prototype.selectPreviousCommand = function() {
    HideActorPopUpOnPreviousCommand.call(this)
    $gameScreen.erasePicture(1);
};

const HideActorPopUpOnEnemyActionStart = Game_Enemy.prototype.performActionStart
Game_Enemy.prototype.performActionStart = function(action) {
    HideActorPopUpOnEnemyActionStart.call(this, action)
    $gameScreen.erasePicture(1);
};

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////Use Actor Pop Up during attacks.
const gameActorShowActionPicture = Game_Actor.prototype.performActionStart
Game_Actor.prototype.performActionStart = function(action) {
    gameActorShowActionPicture.call(this,action);

    actorId = this._actorId;
    classId = this._classId;
    actorname = "";
    classname = "";
    fullname = "";
    
    if ($dataActors[actorId].meta.BattlePopUp != null){
     actorname = $dataActors[actorId].meta.BattlePopUp;
    };

    if ($dataClasses[classId].meta.BattlePopUp != null){
     classname = $dataClasses[classId].meta.BattlePopUp;
    };
    
    fullname = (actorname + "" + classname);
    
    if (fullname != ""){
     $gameScreen.showPicture(1, fullname, 1, 40, 300, 100, 100, 55, 0);
     $gameScreen.movePicture(1, 1, 650,300, 100,100, 255, 0, 24);
     setTimeout(this.eraseBattlePicture, 400)
    };
    

};

Game_Actor.prototype.eraseBattlePicture = function() {
 $gameScreen.movePicture(1, 1, 675,300, 100,100, 0, 0, 10);    
};

I'm ok if people want to try out the script for themselves - but please give credit if you do that.

Original thread: https://forums.rpgmakerweb.com/threads/working-on-a-battle-pop-up-system-and-hoping-for-some-feedback.126710/