added first part of macro for html imagerjs