implemented dialog to choose gallery or camera when adding photo.