More work on rewriting the texture loading process.