changed object loading to support textures