Text this: Determination of optimal formats for digital image compression