Add jpeg library for freeimage and debug imread.