write NODATA to missing pixels
replace mtex with pak archive
create directories if necessary