Use gaussian smoothing before gradient calculation for image