refactored/centralized drawing to screen using xlib etc