Make sizing calculations more specific to particular layout

Also tweaked svg size to hide scroll bar
Implement Linear Layout
Centred Square layout
Allow passing in layout parameter to constructor