re-implement ToggleBitmapLayer via BitmapLayer