Pulling in image filtering code from: http://www.jhlabs.com/ip/blurring.html