camera is working when the phone is rotated