When a custom component is used which controls the component size i.e. for zooming, you have to respect the current
PreviewImageRatio which is used by the JYScrollPaneMap to create the preview.
All relevant lines are highlighted. Press the "Run..."
button to start the demo.