added accessors for internal textures, more flexible setTexture routines