add base code to POST image data