Fix forgotten resizing of depth average files. Add an assertion.