Optimized image processor that does basic kernel convolution