make texture dataurl programatically