update jpegcode example

update jpegcode example
restore makefile
keep boxes/makefile as Bert's style