call resizeImage on document ready as well as on window resize;