Added the possibility to specify to a BaseObject its root object
Textures are uploaded in another context