Rewrite thumb code.
Serve photos for debugging.