use Buffer concat, write content-length head for image