Display image file name in AE viewport
This suggestion might help you
https://video.stackexchange.com/a/26424/4426

It was relating to audio files, but the principle is the same.
You would make a text layer, then apply this expression to the Source Text field in the text layer:
thisComp.layer(2).name

Anything on layer 2 in the comp would then have its file name displayed in the text layer.