Fix variable redeclaration
Add basic median filter (very slow)
Switch to Float32 arrays
Add batch detection, to avoid redrawing when paused