now generating the full tag (incl. <img src= /> elements)