Viscosity solutions in image processing