make the client return the imageId only when image has been built