(JPEG) Making source common for the JPEG encoder and decoder