Cleaned the code while looking for ways to implement https://github.com/difi/oxalis/issues/118
Rewritten the SDBH wrapping, so that the effective headers will be used - https://github.com/difi/oxalis/issues/125