I doubt jpg files are supported in the GameAPI library. I never tried it myself, but other than that and that maybe the graphic files are not in the same directory of the .ppl application, your program is fine. Convert your graphic files to .PNG or .BMP instead. Try it again and let me know!
Regards,
Kornalius