Image processing and nonparametric regression