Fix problems with border extrapolation in kernel. Add Isolated/Nonisolated borders.