add getdata for texture obj