updated texture tool to take a directory