More useful stb-image error handling