correct image height after window resize