- write image metadata into csv file