Yes, I got it from the camera app. I didn't know about the resize event - I assume that's taken care of in gallery.js, in resizeHandler()...

I'll see if I can figure out how to hook into that, and get rid of the orientation stuff (which didn't work anyways).