Corrections and improvements for the 4.0 IMG