Max sure that image is never bigger than the page
Adds keyboard events for next, prev and close