get rid of excessive image macros