Added ability to update texture path and fixed bug in texture path reference