cginew-jpg branch