Cleanup rectification, flip images vertically, and fix typo