Center image and scale it according to window height