Possibly fixed #212: invalid jpg image should no longer cause the game to
error. Instead an error message is shown in the console.