Added automatic texture binding support