Added texture support, changed update loop call