Refactor blit manager and event manager to viewer