dialog class to display image