Add template functions and action hooks for IRDX embed images