Issue #12: refactored installTexture as pure swift function