. Upgraded ImageMagick to latest version
. Refactor image generation to use memory streams instead of temporary file (fix for System.IO.__Error.WinIOError - https://www.outsystems.com/forums/discussion/101027/image-compress-utils-the-file-exists-at-system-io-error-winioerror/ )
. Updated all dependencies to latest stable (remediation to known vulnerabilities)
. Removed unneeded definitions and dependencies
. Added comments for clarity