Resize the image to always fit on the viewport.

I've added th functionality to resize the image according to the size of window. Needs JQuery to work.