[CLEANUP] SpriteBuildingHandler uses deprecated SpriteGenerator API

Resolves: #53778
Releases: 6.2
Change-Id: Ife895d07c67e519553248a62917de921c6e31a76
Reviewed-on: https://review.typo3.org/25524
Reviewed-by: Markus Klein
Tested-by: Markus Klein