Change "spriteGenerator" function name in "generateSprite"