ugly but working way to return images via WSGI, TODOs remain...