implemented jpeg streaming