I am attempting to write a for loop in r that will extract image name metadata from a number of ImageJ batches (saved as .tiff files) each containing 1-10 individual masks.