better generation of sprites