added correct webserver headers, splitted the base64 image data into chucks, added the medium quality stream option