Moved the path sprite creating method to an another class