Fix lossless jpeg encoder to comply to spec and store full redundant