fix issue 1922 - working with images of any size.

* Zooming working.
* Images that are too large are resized to fit the screen.
* JQuery was added in order to do this.
* Thanks to Moin Zaman's solution! (http://stackoverflow.com/a/3971875)