image compression, minor fix