added parsing of textures