Added (fast!) dewarping code and preview.

Should run much, much faster on the Pi than using Imagemagick.