Remove file extensions from texture loading.