change flag when user upload photo