Added dialog box for the image adding