Can Earth be ejected out of the solar system this way? I found this image of what maybe a model of our solar system. Without a credible source I'm not sure I am looking at a star or black hole that comes close to our solar system and how it could throw Earth out of orbit from the sun and/or solar system?  

I found it while Googling for how a solar system travels through space and did a picture search with no luck.

Is this possible? And what am I looking at?
It looks like the model is a simulation of what happens if a massive object flies by a very narrow ring system type of thing with a circular orbit.   The ring system setup seems improbable to me, and the massive object doesn't appear to fly in a straight line, so it's not very accurate for two reasons, but the gravitational effect seems accurate.    If a massive body was to fly into the solar system and pass near Earth it could send the Earth out of the solar system or in towards the sun.   

Fortunately, bodies that massive almost never fly inside the solar system, so that scenario is unlikely to happen over the lifetime of the sun.