Added a standalone function for convolving images.
Fixed bug in convolve_image when image is not square.