How to tint actors portraits when they have a state

Simply put, I wanna have the portrait of the actors tinted a certain color when they have a state. Dunno how I can make it happen

Any help or plugin suggestions?
Someone might give you a plugin, but here's a complicated suggestion: When battle starts put pictures on top of the actor portraits (same pics as the portrait). Then put Yanfly on add/erase state notetags to apply tints on the pictures: $gameScreen.tintPicture(Id, [0, 0, 0, 255], frames);
The problem is the positions of the actor faces are not always fixed. So pictures have to change locations. I don't know if there's a plugin already but I think you need one eventually at least for the menu.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-tint-actors-portraits-when-they-have-a-state.175957/