moved code for the creation of a synthetic model image