Pass width and height to initialize in Shiny mode