add support for Sprite as container