convert back to 8 bit image before saving jpg