Contrast filter working, but kernels are still very slow