refactored/improved device texture selection system