take image convolution image of cos(3 x)