Fix for Chrome error when loading texture created with new Image()

See https://code.google.com/p/chromium/issues/detail?id=115668