Refactor texture pool