There is some weird thing about the nexus and how it processes photos. Try clearing out the cache of the camera app, and trying again. If that does not work, clear out the cache in recovery mode.
I tried to clear the cache normally, but that didn't work. I then installed another camera app, and that works just fine. But the Google camera app still does that