Compression is used when adding new photos to a patient.

At the moment of inserting the image to the database, compression is performed or not.