added support for surfaceSprites flatten type which was missing from SP