added threading to gaussian blur