use device orientation for capturing photos