Image files not being generated, when converting base64 image strings to files in a .zip file (when downloading)

I have an array of objects, that have Base64 image strings.
I am following the linked tutorial and ChatGPT, trying to convert this to a blob, so that I can store it inside a .zip file.
Mime type is coming up as “image/jpeg”, so I am not sure what I’m doing wrong. This is how I’m getting the files (Duck and hehe). The other 3 files were not Base64 image strings so they are different.
Can anyone help me understand what I’m doing wrong.
Linked tutorial: https://saturncloud.io/blog/creating-a-blob-from-a-base64-string-in-javascript/#:~:text=Converting%20a%20Base64%20string%20to%20a%20BLOB%20in%20JavaScript,-To%20convert%20a&text=The%20atob()%20function%20decodes,returns%20a%20new%20BLOB%20object.

Have attached screenshots below:

This is how the code is for the base64 strings:
enter image description here

This is how the zip file is downloaded:
enter image description here