Image restoration and enhancement