showing dialog after images are loaded