updated image buffer with condition variable