added polygon mode, point width, line size