Improved filtering for texture loading