support image compression.