changed GraphicContainer constructor