updated setRPropertiesBinaryModel.R with logging and image file global variables