title: Invalid image error using dataUrl in pdfmake
body: <p>I'm using pdfmake to generate a PDF doc in an angular app, and just trying to add an image to the output using a dataURL (following the <a href="http://pdfmake.org/index.html#/gettingstarted" rel="noreferrer">pdfmake docs</a>.</p>
  
  <pre><code>        var docDefinition = {
            content: [
              {
                table: {
                  widths: ['*'],
                  body: [
                    [{text: 'Table text goes here', style: 'tableCellPadded'}]
                  ]
                },
              },
              {
                image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJgAAACHCAYAAADqQ...AABJRU5ErkJggg==",
                width: 152
              }
              '...various other text lines go here...'
            ],
            styles: {
              header: {
                bold: true,
                fontSize: 14
              },
              tableCellPadded: {
                margin: [0, 15, 0, 15],
                bold: true,
                fontSize: 14
              },
              note: {
                fontSize: 16,
                bold: true,
                italics: true
              }
            }
          };
  </code></pre>
  
  <p>However, when I attempt to print out the doc, I get this error in my console:</p>
  
  <blockquote>
    <p>invalid image, images dictionary should contain dataURL entries (or local file paths in node.js)</p>
  </blockquote>
  
  <p>As best as I can tell, I have the item entered correctly in the doc definition object, and my dataURL is valid (I've tested it in my browser). Is there something else I'm missing?</p>
  
  <p>Thanks.</p>