Update mach-wave.c

Bring back JPEG Buffer