fixed bug that ignores pixels that are not part of the actual image instead of writing them back
(this applies in case the image dimensions are not multiplicative of the CUDA convolution window sizes)