Removing kwarg from kwarg dictionary to avoid causing issue when the same dictionary is passed to pyglet methods.