Display a picture in front of an enemy when they're affected by a status effect

I'm looking for a way to make a picture appear in front of an enemy as a status effect indicator.
For instance when a spell creating let's say a blocking wall is cast, I want this wall to visually appear in front of an enemy and disappear only after the status is removed.
Are there any scripts for such effect?

Alternatively, I could try doing this with common events, but I would need a script call setting a variable to the X and Y coordinates of an enemy targetted by the skill.

Original thread: https://forums.rpgmakerweb.com/threads/display-a-picture-in-front-of-an-enemy-when-theyre-affected-by-a-status-effect.169159/