Offset map generated from bicubic resampling.

Still ugly. Boo.
Fix a few one off errors, flip output.