NanoJPEG license and original port comments added.