I think the closest thing to what you want to achieve is to search how particles are rendered, since they are just a textures that gets draw on the screen in a certain location in most cases. Or you can always create an entity that has the texture of your image and spawn that entity when you want to see the image, but I don't think this will be the optimal approach (but it will sure get the job done quickly)
https://docs.oracle.com/javase/tutorial/java/javaOO/lambdaexpressions.html
LazyOptional.of(() -> new TestCapability())
or use ::
LazyOptional.of(TestCapability::new)