Made write operations async
Send timestamps for mjpeg stream