Add an array to keep track of file-to-slice mapping when writing.
A start to the support of writing enhanced multi-frame MR.