Adapt image viewer to screen size.