MV How to add a custom image via a plugin?

If I want to add a custom image to like battle via a plugin, how can I code-in that plugin?
The same way you'd add an image in any other context, e.g.
JavaScript:
spriteset.addChild(new Sprite(ImageManager.loadPicture("MyPicture")))
Further details depend on your use case, e.g. where/when should it be shown, does it need to move/animate, etc.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-add-a-custom-image-via-a-plugin.152679/