Issue #36: Add index to texture instances