added function to calculate gaussian blur