Median on whole frame

Bad. Bad and slow.