added a flag to use device orientation and not camera orientation when capturing a photo