This would appear to be relevant:
http://stackoverflow.com/questions/2923564/uncaught-error-index-size-err
...but I can't help with the fix. I *guess* the API is falling foul of
Chrome's Javascript speed and it ends up trying to do something with
an image which is not completely loaded.