added a wait progress dialog while photo is taken