Output of base64 looks like this: data:;base64, where it should be data:image/png;base64 for example.