Moved new kernels under conditional compilation to disable their build for 3-channel images; added condition to use new kernels only for images that are big enough