Write GDAL mask bands.

Closes #41.