pass dwt level and levels to kernels