Add generic event handling to sprites