detect compass direction while taking picture

Able to detect direction where phone was pointing when picture was
taken (currently SW, SE, NW, NE) and display it to the user.