Periodically save images from camera to file

Actually, I am using C++. I specified a file name generation in the options, it did capture the screenshots, but the files were still saved to a weird location as showed in the log. I decided to use another function anyway.

Here is how it gets weird in UE 5.2:

https://github.com/EpicGames/UnrealEngine/blob/02dc8dbdd89f749cd5500376e9bb87271bf64848/Engine/Source/Runtime/Engine/Private/Tests/AutomationCommon.cpp#L151-L152

https://github.com/EpicGames/UnrealEngine/blob/02dc8dbdd89f749cd5500376e9bb87271bf64848/Engine/Source/Developer/FunctionalTesting/Private/AutomationBlueprintFunctionLibrary.cpp#L775

https://github.com/EpicGames/UnrealEngine/blob/02dc8dbdd89f749cd5500376e9bb87271bf64848/Engine/Source/Developer/FunctionalTesting/Private/AutomationBlueprintFunctionLibrary.cpp#L458