fix texture interpolation bug

and optimize texture loader