Fixed bug in IMAG macro definition.