So I had this code here which overwrites the default canvas.toDataURL() function and makes it return something different.
H