passing dataURL as a string fix