1. Dependencies update
2. File type recognition if an incorrect mime-type comes in (OpenScan compatible)
3. Now the file is immediately saved in the temporary directory to avoid the situation when the sender of the file decides to die