refactored prewitt method to accept size instead of 2 kernels.