Adding assert to Image smoothing property