Removing senseless .toString(10) calls
Ensuring the PNG support dont break the library initialization under older browsers