Adding support for texture loading