Add GraphicsHandler to split the rendering code from CoreLoop.

Signed-off-by: Michael Fabian Dirks <hellbirdxjun@gmail.com>