splitted the base64 data into chunks according to RFC 2045 semantics
added correct webserver headers, splitted the base64 image data into chucks, added the medium quality stream option