Remember initial content size and use for further calculations

Till now it always took the current size of the lightbox and therefore
reduced it everytime.