image gradients and blurring implemented