Modify getGraphicsEnv, rename screenDimensions