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

Closes #2089
I agree. This is not meant for final acceptance. Right now it does not even pass unit tests,