Batch process images from single directory in to post folder

Hi, I have over a hundred short-form posts imported from an older site where the custom image field references an image located in a separate image directory, e.g. site.com/images/. Iā€™m new to Kirby and wondering how I go about batch processing the transfer of each image to its respective post folder, including generation of a new txt file to contain info about the image. This would then allow me to create a separate gallery page showing all the images together more easily.