Fixed IE/FF image resize problem