Added mipmap texture support