make jpeg ref code until Quant