refactor figures path