How to copy filename of picture in pages and paste this in "title" of the picture?

Is there a way to copy the filename of a picture in Apple Pages? This filename would I use to put as the title of this picture in my document so I can use it for the index. Best automated when possible…

The other way could be to go to the folder, choose the right file and copy the file + filename. Combined in an in a Apple script… of anyone can write this that would help a lot.