Adds link around image if present and image element type is used