light graphics.__init__ porting