Removed X11 code.
Added detection of screens.
Added loading of GCs.