Fix static image bug where displayviz variable is not set.