Moved an import to specific function.
DWImage class stores 2D slices in addition to flattened view.