dialog is not open when there is no image