The following snippet will show you how to set a fallback image ID for the Image Element when it's set…