implement convolve layer image generation