adding kernels to support 3D images