add writing metadata for each photo