Get the filename of an image

It would be nice if it were possible to get the filename and display it in text from an image and sequences. To go in depths, if it worked with sequences. An image would be randomly selected from the sequence then you would be able to get the filename and display it in a text for instance.