$('img').hover(function() {
  $(this).addClass('hoverBorder');
}, function() {
  $(this).removeClass('hoverBorder');
});

