added confirm dialog to delete image