Kernel-based image convolution with 3x3 kernels