Dialog box not initialising-controls-fig-png