add smoothing to raspi streaming

Added some smoothing function. I haven't tested this since I don't have an RPi handy, but who knows, maybe it will work.