Set image and environment from yaml file if they are not passed in

[#68220296]