Made renderer parameter optional for DisplayObject generateTexture method