I have an image control with src set to a WebAPI call that dynamically generates the image. Issue is that the image takes up to 1s to load and after the image is loaded, the panel containing the image doesn't resize to show the image. Only the top few pixels are shown.