properly handle the success of saving an optimized jpeg
attempt to not cache the uncompressed PIL image