loadTexture now properly handles loading errors.

Previously the loadTexture method did not notify the promise that an image failed to load.  This lead to issues in the browser where objects would not load and the user was not notified as to why.