public override void drawOnImage(ref Image image, BoundingBox boundingBox)
            {
                if (Global.Debug3) Utils.Log("draw base texture with bounding box");

                setupImages();
                image.resizeAndFill(_main.texture.width, _main.texture.height, _main.pixels, boundingBox);
            }
            public override void drawOnImage(ref Image image)
            {
                if (Global.Debug3) Utils.Log("draw abase texture");

                setupImages();
                image.resizeAndFill(_main.texture.width, _main.texture.height, _main.pixels);
            }
            public override void drawOnImage(ref Image image, ref Image normalMap)
            {
                if (Global.Debug3) Utils.Log("draw base texture with normal map, bounding box");

                setupImages();

                image.resizeAndFill(_main.texture.width, _main.texture.height, _main.pixels);
                normalMap.resizeAndFill(_normalMap.texture.width, _normalMap.texture.height, _normalMap.pixels);
            }
            public override void drawOnImage(ref Image image, ref Image normalMap, BoundingBox boundingBox)
            {
                if (Global.Debug3) Utils.Log("draw base texture with normal map, bounding box");
                if (!(_mainTextInfo != null && _mainTextInfo.Count > 0 && _selectedTexture >= 0 && _selectedTexture < _mainTextInfo.Count)) return;

                setupImages();

                image.resizeAndFill(_mainTextInfo[_selectedTexture].texture.width, _mainTextInfo[_selectedTexture].texture.height, _mainTextInfo[_selectedTexture].pixels, boundingBox);
                normalMap.resizeAndFill(_normalTextInfo[_selectedTexture].texture.width, _normalTextInfo[_selectedTexture].texture.height, _normalTextInfo[_selectedTexture].pixels, boundingBox);
            }
            public override void drawOnImage(ref Image image)
            {
                if (Global.Debug3) Utils.Log("draw abase texture");
                if (!(_mainTextInfo != null && _mainTextInfo.Count > 0 && _selectedTexture >= 0 && _selectedTexture < _mainTextInfo.Count)) return;

                setupImages();
                image.resizeAndFill(_mainTextInfo[_selectedTexture].texture.width, _mainTextInfo[_selectedTexture].texture.height, _mainTextInfo[_selectedTexture].pixels);
            }