I have this little function to print the image size.
while it works when I just call the function 
with `size('#prototype);` for example, it is not working anymore on `resize('#protoimg)`.

Why? Can anyone help me out, please?

```
$(document).ready(function(){
  function size(a){
    var height = $(a).height(); 
    var width = $(a).width();
    $('#picbox').find('p.size').remove();
    $('#picbox').append('<p class="size">' + width + '-' + height + '</p>');
  }

  size('#protoimg');
  $(window).resize(size('#protoimg'));
)};

```