title: Index or size was negative, or greater than the allowed value.
body: <p>I'm using color-thief.js on my website to render a colorpalette based on my portfolio image. </p>
  
  <p>Sometimes it's working but I'm getting the error below most of the time. I'm no JS superhero so it would be really nice if somebody could help me out here.</p>
  
  <blockquote>
    <p>Uncaught IndexSizeError: Index or size was negative, or greater than
    the allowed value.</p>
  </blockquote>
  
  <p><a href="http://www.ravenwebdesign.nl/portfolio/duiksport/" rel="nofollow">Link to my portfolio page</a></p>
  
  <p>You can see the error pop up in the console and it seems to do be fine when I load it for the first time in a small while.</p>