We check there is no presence of the incorrect "data:image/png;base64,b'" string

It's more pertinent to test there is NO bad "data:image/png;base64,b'".
Indeed, the png image could be provided by a link to a .png file.