Assuming I insert anything in my DOM with jQuery, like so:
$(\'#someselector\').prepend(\'\');
You can try something like this:
$('#someselector') .prepend('') .find('#someid');
Or if there's only one img:
$('#someselector') .prepend('') .find('img');
Alternatively:
$('').prependTo('#someselector')