jQuery(function($) {
  $('div.gpimage').each(function() {
    $(this).css('width', $('img:first', this).css('width'));
  });
});