Robust rectification of aerial photographs in an open source environment