Resize image on window resize.