Add stdDevation and gradient magnitude