Update texture logic