Fixed Resizing bug

The LayoutManager did not include the vertical gap (vgap) which would
lead to errors in the image/scrollbar layout when resizing if the image
was a hyperstack.
Fix margins

I think from the ImageLayout class, the "hgap"s are just 5, which makes
the margins 10 regardless if it is MacOSX or not.