make all external textures path relative path