Google added Photo Sphere on Jelly Bean 4.2.2 which lets you take 3D style photos with your Android phone's camera. To enable Photo Sphere on Nexus 4 do as follows
To know more about Photo Sphere, read: What is Photo Sphere?
1. Open "Camera" app
2. As shown in the screen shot, tap the icon on the bottom left (in landscape mode, the icon is on bottom right)
3. Tap the Photo Sphere icon
4. Align the camera to start (It takes some time to get used to taking some perfect pictures)