updating html with better texture handling