Adding the Jpeg on CPU code