made the imagedialog modal