fixes #7 -- cleanup, better logging, fix tests, handle base64 image data, bump