convolution now works on square images