A higher order model for image restoration: the one-dimensional case