Ticket #33090: added optional image compression