Software to dewarp book picture images, and for building models of ruled surfaces