A degenerate parabolic equation arising in image processing