Pointers on how to Convert an Image to JPG Structure