Fixed bug in copyWithPadding for non-square kernels
merge stuff?