My code generates various states that need to be saved in jpg format. The problem is that too many images ~300 are generated immediately. Because of this, html2canvas does not h