Issue #100 implemented (provide an ability to use either LayoutOptions or JSON string in layout's options)