* add optional offset parameter to ImageFilterLayer * update unit test for LayerStateStack and fix HTML implementation