Could be done like this instead:
DEMO jsFiddle
function bigger(service) {
var image = window.open("", 'image', 'width=510,height=470,menubar=0,scrollbars=0,titlebar=0,left=200,toolbar=0,top=200,resizable=0');
$(image.document.body).append('<img style="width:100%" src="' + service + '">').on('click', function(){
image.close();
});
}