Assuming I insert anything in my DOM with jQuery, like so:
$(\'#someselector\').prepend(\'\');
Solution without creating a jQuery object before and without having an Id:
var $img = $('#someselector') .prepend('') .find(':first');