Moved mask writing to dwi/mask.py
Imports cleared