Fixing the gradient image