Deconvolution image shape fix

Fixes #1172.