JPEG embedding is now working as expected, embedding algoithm needs work, as does writing to multiple image rows