Add event for fully loaded images,
fix centering of thumbnails
disable panning when image shorter than window