added basic filtering in TextureHist