Legality of Copyright of pictures in official documentation etc. for thesis publication?

Not sure where to post this as it is kind of a unusual question but here goes:

I am currently writing a thesis on a gameplay system I built in Unreal Engine 4 and in the thesis contains images taken from UE4’s documentation pages (for example this picture https://docs.unrealengine.com/Images…alization.webp taken from https://docs.unrealengine.com/en-US/…als/index.html)

I also have pictures in the thesis that are screenshotted from learning material videos posted on Unreal Engine’s official YouTube channel (for example this video: https://www.youtube.com/watch?v=PiQ_JLJKi0M).

Am I allowed to publish the thesis with these images or do they need to be removed? What is the legality of this? I can’t find any info about it on the Unreal Engine website.

An answer for this question has been posted by Epic staff over here: Legality of Copyright of pictures in official documentation etc. for thesis publication? - Rendering - Unreal Engine Forums