added ImageStackDirectoryWriter