change in the jpegcode example

Modify the application to work with infinite input records. Keep the old Makefile and run script.