Added ya2d_loadJPEGfromBuffer function.