How can I get the current progress of the image generation as a value and send it to the client, so that I can display a progressbar on my client?