How to compress images added as attachments or via ImageAnnotations?