added multi texture support