TQA-1301: improve image compression