Wrap Sprite in SpriteComponent class instead of having Sprite as
component.
Screen flashing function.