Update jpg.cpp