Fixed IE8 bug and image resizing after loading