More work on JPEG stuff, think the embedding algorithm is now working, trying to fix memory corruption issues...