       // So, when we do malloc we simply get an index into the heap where 
          // we can write. This is done by writeArrayToMemory which will
          // simply call HEAP8.set(array, buffer), which means : 
          // "copy array to HEAP8 at offset buffer"
          Module.writeArrayToMemory(rawJpegAsTypedArray, srcBuf);
          // We give setSrcImage the pointer to the raw Jpeg data in the heap.
          // This function will return information about the bitmap :
          // { ULONG width; UL