Fix issue with image size not correctly being passed to convolution operator

Closes #2089
I understand this can be useful for debugging, but please remove it from the final code (even commented out).