Checks user preference for report images. If Active Model is selected, this function takes a snapshot of the model, using model viewer 2, and saves it to disk as a png image. If None is selected, this function creates a blank placeholder image to be used in reports.
Parameters:
file_name
(string) output filename. Extension .png will be added automatically
path
(string) location where to save file. Empty string ('') means current project folder
view_mode
(mv2_viewmode enum) rendering mode
components
(Bool) True to include components, else False. Component viewmode will force components on.
If path or file_name are specified, the caller is responsible for making sure they are valid.