Add spatiotemporal median filter