Lossy Compression of Integer Astronomical Images Preserving Photometric Properties