ENH: fix initialization of directions, slice sorting
ENH: account for the change in dcmtk/seg addFrame() API