Added "onCollision" and "onEventKeypress"

Added "onCollision" and "onEventKeypress" functions to Sprite objects
and Image objects.