added texture support