$.fn.copyban = function(imageUrl, hiddenBlocksBefore) {
  var paddingTop = 0;
  if (hiddenBlocksBefore != null) {
      $.each(hiddenBlocksBefore, function(index, value) { 
          paddingTop += $('#'+value).height();
      });
  }
	return this.each(function() {
        var _this = $(this);
        _this.append('<img id="copyban_ref_img" src="'+imageUrl+'" style="position: absolute;top:'+Math.round(_this.position().top - paddingTop - 10)+'px; left:'+Math.round(_this.position().left-10)+'px;width:'+Math.round(_this.width()+20)+'px;height:'+Math.round(_this.height()+20)+'px" alt="" />');
    });        
};
