I am trying show a loading screen while converting a div to an image URL and then the drawing that image on a canvas to convert the canvas to a data URL. I convert the div t