events and targets that trigger setSprite method are configurable