Total rewrite of this package

Since this is not used and I have a much better system in place now with the same functionality I though we might as well replace the old stuff with this new thing that works much better in practice, with no intermediate storing of images etc.