Python overhaul: ImageInput (fixes, expose new methods, unit tests, docs)
Also many of the "global" functions and symbols have been overhauled.