moved global variables for graphic info to graphics code