Warping image gradients