$(function(){

  $(".the-post").find("img:only-child").each(function(){
    if ($(this).width() > $(this).parent().width()){
      $(this).parent().addClass("push-img");
    }
  });

});
