Major rewrite with Ratchet and kikInteractive's photo viewer.