I have the following code:
$(this).children(\"a:eq(0)\").append(\'
As an alternative, for those who likes more programmatic ways and syntax:
$('#container-element img').last().remove();