Index: trunk/Ohana/src/opihi/cmd.data/jpeg.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.data/jpeg.c	(revision 2843)
+++ trunk/Ohana/src/opihi/cmd.data/jpeg.c	(revision 3693)
@@ -51,8 +51,6 @@
   }
 
-  strcpy (buffer, type);
-  write (Source, buffer, 4);
-  sprintf (buffer, "LEN: %11d", strlen(filename));
-  write (Source, buffer, 16);
+  SendGraphCommand (Source, 4, type);
+  SendGraphCommand (Source, 16, "LEN: %11d", strlen(filename));
   write (Source, filename, strlen(filename));
   read (Source, buffer, 4);
