Editor: refactor the tileset image view with an explicit state.