ElasticSprite refactoring using composition