updated IconFactory and CardSprite classes