Fix for GLSL median filter and test