debugging motion layers, need more tests on histogram