Writes the contents of the current directory to the file and setup to create a new subfile (page) in the same file.
Applications only need to call WriteDirectory when writing multiple subfiles (pages) to a single TIFF file. WriteDirectory is automatically called by Close and Flush to write a modified directory if the file is open for writing.