improving jpeg quality in patient reports