Added alert dialog to switch image