/Engine/Source/Runtime/Engine/Public/ImageUtils.h
If Texture source is available, get it as anFImage
static bool GetTexture2DSourceImage ( [UTexture2D](API\Runtime\Engine\Engine\UTexture2D) * Texture, [FImage](API\Runtime\ImageCore\FImage) & OutImage )